// Copyright (C) 2009 by NHN Corporation. All rights reserved.
// Released under the terms of the GNU General Public License version 2 or later.
package fitnesse.wikitext.widgets;

import junit.framework.Assert;

public class ChartWidgetTest extends WidgetTestCase {
	public void testWidget() throws Exception {
		ChartWidget widget = new ChartWidget(new MockWidgetRoot(), "!chart-data a,b,d,q,asd,asd,asd,asd");
		Assert.assertEquals("<img src=\"/chart?data=a,b,d,q,asd,asd,asd,asd\">", widget.render());
	}

	protected String getRegexp() {
		return ChartWidget.REGEXP;
	}
}
